
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/include/taglib.jsp" %>
<div id="actBusFields">
    <div class="row">
        <div class="form-group col-sm-6 col-md-5 ">
            <label class="col-sm-3 control-label no-padding-right">工单编号:</label>
            <div class="col-sm-9">
                <span class="col-xs-11 block input-icon input-icon-right">
                    <input id="code" name="code" type="text" class="form-control" value="${srmInfo.code}" readonly/>
                </span>
            </div>
        </div>
        <div class="form-group col-sm-6 col-md-5 ">
            <label class="col-sm-3 control-label no-padding-right"><i class="red"> * </i>标题:</label></label>
            <div class="col-sm-9">
            <span class="col-xs-11 block input-icon input-icon-right">
                <input id="srmTopic" name="srmTopic" datatype="*1-64" nullmsg="标题不能为空!" type="text" readonly class="form-control" value="${srmInfo.srmTopic}"/>

            </span>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="form-group col-sm-6 col-md-5 ">
            <label class="col-sm-3 control-label no-padding-right"><i class="red"> * </i>描述:</label>
            <div class="col-sm-9">
            <span class="col-xs-11 block input-icon input-icon-right">
                <textarea id="srmContent" name="srmContent" datatype="*1-500"  class="form-control" readonly rows="3">${srmInfo.srmContent}</textarea>

            </span>
            </div>
        </div>

    </div>
    <div class="row">
        <div class="form-group col-sm-6 col-md-5">
            <label class="col-sm-3 control-label no-padding-right">业务系统:</label>
            <div class="col-sm-9">
                <span class="col-xs-11 block input-icon input-icon-right">
                    <input  id="operationName" datatype="*" nullmsg="业务系统不能为空!" onclick="selectBus()" placeholder="请选择业务系统" name="operationName" readonly type="text" class="form-control" value="${srmInfo.operationName}"/>
                    <input  style="display:none" id="operation" datatype="*" nullmsg="业务不能为空!" onclick="selectBus()" placeholder="请选择业务" name="operation" readonly type="text" class="form-control" value="${srmInfo.operation}"/>
                </span>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="form-group col-sm-6 col-md-5">
            <label class="col-sm-3 control-label no-padding-right"><i class="red"> * </i> 计划开始时间:</label>
            <div class="col-xs-9">
                <span class="col-xs-11 block input-icon input-icon-right">
                <input id="srmOverdueDate" name="srmOverdueDate"  nullmsg="请求最迟解决时间不能为空!" type="text" class="form-control layui-input" value="<fmt:formatDate value="${srmInfo.srmOverdueDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"/>
                </span>
            </div>
        </div>
    </div>
    <c:forEach items="${fieldList}" var="firld" varStatus="i">
        <div class="row">
            <div class="form-group col-sm-8 ">
                <label class="col-sm-2 control-label no-padding-right">${firld.field}:</label>
                <div class="col-sm-10">
                         <c:if test="${firld.fieldType == '1'}">
                             <input  id="${firld.fieldName}" name="valueDictionarys[${i.index}].fieldValue" type="text" readonly class="form-control" value="<c:forEach items="${srmInfo.valueDictionarys}" var="valueDictionary"><c:if test="${firld.id == valueDictionary.fieldId}">${valueDictionary.fieldValue}</c:if></c:forEach>"/>
                         </c:if>
                         <c:if test="${firld.fieldType == '2'}">
                             <textarea  id="${firld.fieldName}" name="valueDictionarys[${i.index}].fieldValue" readonly class="form-control" rows="3"><c:forEach items="${srmInfo.valueDictionarys}" var="valueDictionary"><c:if test="${firld.id == valueDictionary.fieldId}">${valueDictionary.fieldValue}</c:if></c:forEach></textarea>

                         </c:if>

                </div>
            </div>
        </div>

    </c:forEach>
</div>
<script>

    laydate.render({
        elem: '#srmOverdueDate' //指定元素
        ,type: 'datetime'
    });
</script>
<c:if test="${flag == 2}">
    <%@include file="../activiti/processComSub.jsp"%>
</c:if>
<script>
    var setting = {
        view: {dblClickExpand: false}
        ,data: {key: {name:"name"},simpleData: {enable: true,idKey: "id",pIdKey: "parentId"}}
        ,callback: {}
    };
    var ztree;
    $(function(){
        var data='${operationTree}';
        ztree=$.fn.zTree.init($("ul[name='operationTree']"), setting, eval(''+data+''));//ztree树加载
    });
</script>